 class  Date{
    public int year;
    public int month;
    public int day;
    public void setDay(Date this,int year,int month,int day){

       this.year=year;
        this.month=month;
        this.day=day;
    }
    public void printDate(){
        System.out.println("year:"+year+" month:"+month+" day:"+day);
    }
 }
public class Test {
    public static void main(String[] args) {
        Date date =new Date();
        date.setDay(2023,11,4);//实参
        date.printDate();
    }
}
